package com.yunfeisoft.business.service.impl;

import com.yunfeisoft.business.dao.inter.BedDao;
import com.yunfeisoft.business.model.Bed;
import com.yunfeisoft.business.service.inter.BedService;
import com.yunfeisoft.common.base.BaseServiceImpl;
import com.yunfeisoft.common.utils.Page;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * ClassName: BedServiceImpl
 * Description: 床位service实现
 * Author: Jackie liu
 * Date: 2020-01-13
 */
@Service("bedService")
public class BedServiceImpl extends BaseServiceImpl<Bed, String, BedDao> implements BedService {

    @Override
    public Page<Bed> queryPage(Map<String, Object> params) {
        return getDao().queryPage(params);
    }

    @Override
    public List<Bed> queryByRoomId(String roomId) {
        return getDao().queryByRoomId(roomId);
    }

    @Override
    public List<Bed> bedList(String roomId) {
        return getDao().bedList(roomId);
    }
}